<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>clear_format (Table::RTable)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File rtable.rb, line 260</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_format</span> <span class="ruby-identifier">x</span>,<span class="ruby-identifier">foo</span>=<span class="ruby-keyword kw">nil</span>
    <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">foo</span>.<span class="ruby-identifier">class</span>
      <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Fixnum</span>
        <span class="ruby-ivar">@ansi</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-node">&quot;#{x}:#{foo}&quot;</span>)
        <span class="ruby-ivar">@formats</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-node">&quot;#{x}:#{foo}&quot;</span>)
      <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Range</span>
        <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">foo</span>
          <span class="ruby-ivar">@ansi</span>.<span class="ruby-identifier">delete!</span>(<span class="ruby-node">&quot;#{x}:#{i}&quot;</span>)
          <span class="ruby-ivar">@formats</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-node">&quot;#{x}:#{i}&quot;</span>)
        <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-ivar">@rows</span>[<span class="ruby-identifier">x</span>][<span class="ruby-identifier">:cols</span>].<span class="ruby-identifier">each_with_index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">v</span>,<span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
        <span class="ruby-ivar">@ansi</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-node">&quot;#{x}:#{c}&quot;</span>)
        <span class="ruby-ivar">@formats</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-node">&quot;#{x}:#{c}&quot;</span>)
      }
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>